package com.controller;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import com.entity.Accessrecord;
import com.service.AccessrecordService;

@Controller
@RequestMapping("/access")
public class AccessrecordController {
	
	@Resource
	AccessrecordService accessrecordService;
	
	@RequestMapping(value="/padnumber",method=RequestMethod.GET,produces="text/html;charset=UTF-8")
	public String padnumber(ModelMap map){
		List<Accessrecord> list=accessrecordService.querypadnumber();
		map.addAttribute("list", list);
		return "padnumber";
	}
}
